<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>文件列表</title>
</head>
<body>
    <c:if test="${ not empty files }">
        <table>
        <c:forEach items="${ files }" var="file" varStatus="x">
            <tr>
                <td>${ x.count }</td>
                <td>${ file.name }</td>
                <td>
                    <a href="/file/download/${file.name}">下载</a>
                </td>
            </tr>
        </c:forEach>
        </table>
    </c:if>
</body>
</html>
